package com.lagou.task10;
/*
编程实现普通内部类的定义和使用
 */
public class NormalOuter {
    private int cnt = 1;
    //定义内部类
    public   class NormalInner{
        private int ia = 2;
        private int cnt = 3;
        NormalInner(){
            System.out.println("内部类构造方法");
        }
        public void show(){
            System.out.println("打印Inner ia =  " + ia);
            System.out.println("打印Outer cnt =  " + cnt);
        }
        public void show2(int cnt){
            System.out.println("打印行餐变量 cnt =  " + cnt);
            System.out.println("打印Inter cnt =  " + this.cnt);
            System.out.println("打印Outer cnt =  " + NormalOuter.this.cnt);
        }

    }


}
